<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>mymsgro</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="stylesheet" type="text/css" href="css/meniu.css" />
</h:head>
<h:body>
	<div id="titleDiv">
		<div id="div0">
			<img src="img/msg.jpg" />
		</div>
		<div id="div1" style="clear: right;">
			<div style="height: 70%; position: inherit;">SMRCS</div>
			<div style="height: 30%;">Sitem de Management a resurselor unei
				companii software</div>
		</div>
		<div style="float: right; vertical-align: middle;">
			<div id="div2">
				<img src="img/head.png" />admin
			</div>
			<div id="div3">Departament</div>
			<div id="div4">
				<a href="www.google.com"><img src="img/poweroff.png" />Logout</a>
			</div>
		</div>
	</div>

	<div id="content" style="">
		<div id="contentLeft">
			<ul id="leftMenu">
				<li><a href="#">Add user</a></li>
			</ul>
		</div>
		<div id="contenRight">
			<h:form id="formAddUser" enctype="multipart/form-data">
				<h:messages />

				
				<h:panelGrid columns="2">

					<h:outputText value="Username:" />
					<h:inputText id="inputUsername" value="#{userBean.username}"
						required="true">
					</h:inputText>

					<h:outputText value="Password:" />
					<h:inputText id="inputPassword" value="#{userBean.password}" />

					<h:outputText value="First name:" />
					<h:inputText id="inputFirstname" value="#{userBean.firstname}" />

					<h:outputText value="Last name:" />
					<h:inputText id="inputLastname" value="#{userBean.lastname}" />

					<h:outputText value="Work email:" />
					<h:inputText id="inputWorkEmail" value="#{userBean.workEmail}" />

				<h:commandButton id="submit" value="Insert user"
					action="#{userBean.addUser}" />
					</h:panelGrid>
			</h:form>
		</div>
	</div>
</h:body>
</html>